package com.mystudy.springcloud.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.*;

@Data
@AllArgsConstructor
@NoArgsConstructor
@ToString
@TableName("t_storage")
public class Storage implements Serializable {

	private static final long serialVersionUID = 1L;

	@TableId(value = "id", type = IdType.AUTO)
	private Long id;

	/**
	 * 产品id
	 */
	private Long productId;

	/**
	 * 总库存
	 */
	private Integer total;

	/**
	 * 已用库存
	 */
	private Integer used;

	/**
	 * 剩余库存
	 */
	private Integer residue;

}
